//
//  Fraction.m
//  02-ClassAndCode
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Fraction.h"

@implementation Fraction
@synthesize numerator = _numerator, denominator = _denominator, res = _res;
- (instancetype) initWithNumerator:(NSInteger)numerator denominator:(NSInteger)denominator {
    self = [super init];
    if (self) {
        if (denominator != 0) {
            self = numerator/denominator;
        }
    }
    return self;
}
- (id)plus:(Fraction *)frac1, fract2:(Fraction *)frac2 {
  
    fract1.
    
}

- (id)min:(Fraction *)frac1 frac2:(Fraction*)frac2 {
    return ;
}
- (id)multiple:(Fraction *)frac1 frac2:(Fraction*)frac2 {
    return ;
}

- (id)div:(Fraction *)frac1 frac2:(Fraction*)frac2 {
    if (__denominator != 0) {
        return __numerator/__denominator;
    }
    else if(__denominator = 0) {
        
    }
}

@end
